<volist name="tree" id="list">
	<tr <notempty name="list['_']">class="haschild"</notempty>>
	<form action="{:U('edit')}" method="post">
		<!-- <td <notempty name="list['_']">class="tdchild"</notempty>><i></i></td> -->
	    <td>{$list.sort}</td>
	    <td>{$list['allow_publish']?'是':'否'}</td>
	    <td>
				<input type="hidden" name="id" value="{$list.id}">
				<if condition="$list.levels eq 1">{$list.title}</if>
				<if condition="$list.levels eq 2">&emsp;&emsp;&emsp;&emsp;{$list.title}</if>
				<if condition="$list.levels eq 3">&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;{$list.title}</if>
		</td>
		<td>
 			{$list.levels}
		</td>
	    <td>
			<a title="编辑" href="{:U('edit?id='.$list['id'].'&pid='.$list['pid'])}"><span class='label label-success'>编辑</span></a>
			<a title="{$list.status|show_status_op}" href="{:U('setStatus?ids='.$list['id'].'&status='.abs(1-$list['status']))}" class="ajax-get"><span class='label label-info'>{$list.status|show_status_op}</span></a>
			<a title="删除" href="{:U('remove?id='.$list['id'])}" class="confirm ajax-get"><span class='label label-danger'>删除</span></a>
			<a title="移动" href="{:U('operate?type=move&from='.$list['id'])}"><span class='label label-warning'>移动</span></a>
			<a title="合并" href="{:U('operate?type=merge&from='.$list['id'])}"><span class='label label-warning'>合并</span></a>
			<if condition="$list.levels lt 3"> 
				<a class="add-sub-cate" title="添加子分类" href="{:U('add?pid='.$list['id'])}">
					<span class='label label-success'>添加子类</span>
				</a>
			</if>
		</td>
	</form>
	</tr>
	<notempty name="list['_']">
		{:R('Category/tree', array($list['_']))}
	</notempty>
</volist>